<?php
error_reporting(0);
 
//$destURL="http://brand.vw.com.cn/vwtfamily/api/VWWeb/Post";
//$destURL = "http://beta.vwyoung.cn/api/VWWeb/Post";
$destURL = "http://vico1.vw.com.cn/stgvariant/b8/Interface/api/VWWeb/Post";

 
$queryString=$_SERVER['QUERY_STRING'];
if($_SERVER['REQUEST_METHOD']=='GET'){
    $url=$destURL.$queryString;
    echo file_get_contents($url);
}
else{
    $url=$destURL.$queryString;
    $context = array();
    $context['http'] = array(
        'method' => 'POST',
        'header'  => 'Content-type: application/x-www-form-urlencoded',
        'content' => http_build_query($_POST)
    );
    echo file_get_contents($url, false, stream_context_create($context));
}
?>